﻿using AnesSystem.Models;
using AnesSystem.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.ViewModels
{
    public class ConfigTemplateDataGridViewModel : BaseViewModel<ConfigTemplateDataGridViewModel>
    {
        //AnesRecordTemplateModelService
        #region Variables 
        private ObservableCollection<AnesRecordTemplateModel> _anesRecordTemplateModelList = new ObservableCollection<AnesRecordTemplateModel>();

        #endregion

        #region Constructor
        public ConfigTemplateDataGridViewModel()
        {
            initConfigContainersModel();
        }


        #endregion

        #region Properties
        public ObservableCollection<AnesRecordTemplateModel> AnesRecordTemplateModelList
        {
            get
            {
                return _anesRecordTemplateModelList;
            }

            set
            {
                _anesRecordTemplateModelList = value;
                RaisePropertyChanged("AnesRecordTemplateModelList");
            }
        }


        #endregion

        #region Event

        #endregion

        #region Private Methods
        private void initConfigContainersModel()
        {
            IEnumerable<AnesRecordTemplateModel> list = AnesRecordTemplateModelService.Instance.FindAll();
            foreach (var item in list)
            {
                _anesRecordTemplateModelList.Add(item);
            }
        }



        #endregion

        #region Public/Protected Methods



        #endregion

        #region EventHandlers

        #endregion

        #region Command

        #region ChangeDoctorCommand

        #endregion

        #region OpenPopupCommand

        #endregion
        #endregion
    }
}
